package com.lianliankan.widget;

import android.app.Dialog;
import android.content.Context;
import android.widget.ImageButton;

import com.example.llkan.R;
import com.lianliankan.util.ButtonSelector;

public class DialogView extends Dialog {
	private ImageButton continueIMB;
	private ImageButton ExitIMB;

	public DialogView(Context context) {
		super(context, R.style.mask_dialog);
		setContentView(R.layout.dialog_view);
		setCancelable(false);
		ButtonSelector bSelector = new ButtonSelector();
		setContinueIMB((ImageButton) findViewById(R.id.gameGo));
		setExitIMB((ImageButton) findViewById(R.id.gameExit));
		getExitIMB().setBackgroundDrawable(
				bSelector.newSelector(context, R.drawable.pauseexit,
						R.drawable.pauseexitpress, R.drawable.pauseexitpress,
						R.drawable.pauseexitpress));
		getContinueIMB().setBackgroundDrawable(
				bSelector.newSelector(context, R.drawable.pausego,
						R.drawable.pausegopress, R.drawable.pausegopress,
						R.drawable.pausegopress));
		getWindow().setLayout(312, 192);

	}

	public ImageButton getContinueIMB() {
		return continueIMB;
	}

	public void setContinueIMB(ImageButton continueIMB) {
		this.continueIMB = continueIMB;
	}

	public ImageButton getExitIMB() {
		return ExitIMB;
	}

	public void setExitIMB(ImageButton exitIMB) {
		ExitIMB = exitIMB;
	}
}
